package com.tripwego.client.event;

import com.google.gwt.event.shared.GwtEvent;
import com.tripwego.client.model.DayModel;

public class DayAAffecterEvent extends GwtEvent<DayAAffecterEventHandler> {

	public static Type<DayAAffecterEventHandler> TYPE = new Type<DayAAffecterEventHandler>();

	private DayModel dayModel;

	public DayAAffecterEvent(DayModel dayModel) {
		this.dayModel = dayModel;
	}

	@Override
	public Type<DayAAffecterEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(DayAAffecterEventHandler handler) {
		handler.handleDayAAffecterEvent(this);
	}

	/**
	 * @return the dayModel
	 */
	public DayModel getDayModel() {
		return dayModel;
	}

	/**
	 * @param dayModel
	 *            the dayModel to set
	 */
	public void setDayModel(DayModel dayModel) {
		this.dayModel = dayModel;
	}

}